.code-comparison-page {
  min-height: 100vh;
  padding: 24px;
  background-color: #f0f2f5;
}

.error-message {
  margin-bottom: 16px;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.code-card {
  margin-bottom: 24px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8; /* 添加底部边框 */
}

.code-content {
  padding: 16px;
  overflow-x: auto; /* 水平滚动条，避免过长代码溢出 */
  font-size: 14px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  line-height: 1.5;
  white-space: pre-wrap; /* 保留换行符并允许文本换行 */
  word-break: break-all; /* 强制换行，处理无空格的长字符串 */
  background-color: #f5f5f5;
  border-radius: 4px;
}

.report-card {
  margin-bottom: 24px;
}

.overview-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

.overview-table th,
.overview-table td {
  padding: 8px 16px;
  text-align: left;
  border: 1px solid #e8e8e8;
}

.overview-table th {
  background-color: #fafafa;
}

.detail-card {
  margin-bottom: 16px;
}

.code-diff {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.code-block {
  flex: 1;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.code-block .code-header {
  margin: 0;
  padding: 8px 16px;
  background-color: #fafafa;
  border-bottom: 1px solid #e8e8e8;
}

.code-block .code-content {
  margin: 0;
  border-radius: 0;
}
